
import HttpClient from '../utils/request';

import type { userReqType, userResType, userReqStateType, userResStateType } from './../types/userType';

// 获取用户列表
export const getUserList = (e: userReqType) => {
    return HttpClient.request<userResType>({
        url: '/platform/cuser/getUserList',
        method: "POST",
        data: e,
        headers: {
            "Content-type": "application/json"
        }
    });
}
// 解冻
export const userStatusSuccess = (e: userReqStateType) => {
    return HttpClient.request<userResStateType>({
        url: '/platform/cuser/userStatusCancelOut',
        method: "POST",
        data: e,
        headers: {
            "Content-type": "application/json"
        }
    });

}
// 冻结
export const userStatusCancelOut = (e: userReqStateType) => {
    return HttpClient.request<userResStateType>({
        url: '/platform/cuser/userStatusCancelOut',
        method: "POST",
        data: e,
        headers: {
            "Content-type": "application/json"
        }
    });
}







